//
//  SKUtils.m
//  Sudoku
//
//  Created by Richard Hodgkins on 12/09/2012.
//  Copyright (c) 2012 Richard Hodgkins. All rights reserved.
//

#import "SKUtils.h"

#import <UIKit/UIKit.h>

@implementation SKUtils

#define CUSTOM_ID_T @"50b455b917019d065d4a430b257d892f19cb16e8"
#define CUSTOM_ID_R @"2a11ee8602045f8b0f60432b8a491123e04d04f5"
#define CUSTOM_ID_S1 @"75AFF2AB-25EA-5B1E-A37B-A0DBEBF83780"
#define CUSTOM_ID_S2 @"75aff2ab25ea5b1ea37ba0dbebf8378000000000"

+ (BOOL)isCustomDevice
{
    static NSArray *customIds;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        customIds = @[CUSTOM_ID_T, CUSTOM_ID_R, CUSTOM_ID_S1, CUSTOM_ID_S2];
    });
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#ifdef DEBUG
   // DLog(@"Device ID: %@", [[UIDevice currentDevice] uniqueIdentifier]);
#endif
    return [customIds containsObject:[[UIDevice currentDevice] uniqueIdentifier]];
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
}


@end
